﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SortMedia.aspx.cs" Inherits="ProlificNotion.Umbraco.MediaSorter.SortMedia" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Sort Media</title>
        <link rel="Stylesheet" href="/umbraco_client/ui/default.css" type="text/css" />
    <link rel='stylesheet' href='/umbraco_client/propertypane/style.css' />
</head>
<body class="umbracoDialog" style="margin: 15px 10px 0px 10px;">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <h2 class="propertypaneTitel">Sorting</h2>
        <asp:PlaceHolder runat="server" ID="sortPlaceHolder" Visible="true">
        <p class="error">This will sort your media items alphabetically, this action cannot be undone!</p>
        <p>
        <asp:Button ID="sortButton" runat="server" Text="Sort Media Items" 
        onclick="sortButton_Click" />
        <asp:CheckBox ID="recurseCheckBox" runat="server" Text="Include subfolders" ToolTip="Sort all sub folders" />
        </p>
        </asp:PlaceHolder>
        
        <asp:PlaceHolder runat="server" ID="successNotice" Visible="false">        
            <p><%= umbraco.ui.Text("sort", "sortDone") %></p>
            <div id="sortingDone" class="success">
                <p><a href="#" onclick="top.closeModal()"><%= umbraco.ui.Text("defaultdialogs", "closeThisWindow")%></a></p>
            </div>
        </asp:PlaceHolder>
        
    </ContentTemplate>
    </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
            <img src="/umbraco_client/images/progressbar.gif" width="220" height="19" alt="Processing request..." />
            </ProgressTemplate>
        </asp:UpdateProgress>
    </div>
    </form>
</body>
</html>
